<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>试卷页</title>
</head>
<body>
<jsp:include page="title.jsp" /><br/>
	<font color="red"><s:actionerror/></font>
	<font color="red"><s:actionmessage /></font>
<div align="center" >
 <h4>试卷号：<s:property value="#request.examInfo.examID" /></h4> 
 <h4>试卷名：<s:property value="#request.examInfo.name" /></h4> 

<s:form action="fabu.action">
   	<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />">
   	<input type="submit" class="btns" value="发布考试">
</s:form> <br/>
 <h3>选择题：</h3>
 <table>
  <tr>
   <th></th>
   <th>题目内容</th>
   <th>选项A</th>
   <th>选项B</th>
   <th>选项C</th>
   <th>选项D</th>
   <th>答案</th>
   <th></th>
   <th></th>
   <th>修改</th>
   <th></th>
   <th></th>
   <th>删除</th>
   <th></th>
   <th></th>
   <th>分数</th>
   </tr>

   <s:iterator value="#request.choices" >
   <tr>
		<td><ul><li></li></ul></td>
   		<td>
			 <s:property value="choice.choiceContent" />
    	</td>
    	<td>
			 <s:property value="choice.choiceA" />
    	</td>
    	<td>
			 <s:property value="choice.choiceB" />
    	</td>
    	<td>
			 <s:property value="choice.choiceC" />
    	</td>
    	<td>
			 <s:property value="choice.choiceD" />
    	</td>
    	<td>
			 <s:property value="choice.choiceAnswer" />
    	</td>
    	
    	<s:form action="editChoiceItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="choice.choiceID" value="<s:property value="choice.choiceID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="修改"  />
		</td>
		</s:form>
		
		<s:form action="deleteChoiceItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="choice.choiceID" value="<s:property value="choice.choiceID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="删除"  />
		</td>
		</s:form>	
		
		<s:form action="editMarkA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="examPaper.examPaperID" value="<s:property value="examPaperID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="<s:property value="mark" />"  />
		</td>
		</s:form>	
	</tr>
   	</s:iterator>
   	</table>
   <br/>
   	
   	<s:form action="addChoiceItemA">
   	<input type="hidden" name="courseID" value="<s:property value="#request.examInfo.courseID" />" >
	<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" />
   	<input type="submit" class="btns" value="增加选择题"/>
    </s:form> 
    <br/>
 
<h3> 判断题：</h3>
 <table>
  <tr>
   <th></th>
   <th>题目内容</th>
   <th>选项A</th>
   <th>选项B</th>
   
   <th>答案</th>
   <th></th>
   <th></th>
   <th>修改</th>
   <th></th>
   <th></th>
   <th>删除</th>
   <th></th>
   <th></th>
   <th>分数</th>
   </tr>

   <s:iterator value="#request.judges" >
   <tr>
		<td><ul><li></li></ul></td>
   		<td>
			 <s:property value="judge.judgeContent" />
    	</td>
    	<td>
			 <s:property value="judge.judgeA" />
    	</td>
    	<td>
			 <s:property value="judge.judgeB" />
    	</td>
    	<td>
			 <s:property value="judge.judgeAnswer" />
    	</td>
    	
    	<s:form action="editJudgeItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="judge.judgeID" value="<s:property value="judge.judgeID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="修改"  />
		</td>
		</s:form>
		
		<s:form action="deleteJudgeItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="judge.judgeID" value="<s:property value="judge.judgeID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="删除"  />
		</td>
		</s:form>	
		
		<s:form action="editMarkA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="examPaper.examPaperID" value="<s:property value="examPaperID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="<s:property value="mark" />"  />
		</td>
		</s:form>	
	</tr>
   	</s:iterator>
   	</table>
   	<br/>
   	
   	<s:form action="addJudgeItemA">
   	<input type="hidden" name="courseID" value="<s:property value="#request.examInfo.courseID" />" >
	<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
   	<input type="submit" class="btns" value="增加判断题"/>
    </s:form> 
 <br/>
 <h3>简答题：</h3>
 
 <table>
  <tr>
   <th></th>
   <th>题目内容</th>
   <th>答案</th>
   <th></th>
   <th></th>
   <th>修改</th>
   <th></th>
   <th></th>
   <th>删除</th>
   <th></th>
   <th></th>
   <th>分数</th>
   </tr>

   <s:iterator value="#request.shortAnswers" >
   <tr>
		<td><ul><li></li></ul></td>
   		<td>
			 <s:property value="shortAnswer.shortAnswerContent" />
    	</td>
    	<td>
			 <s:property value="shortAnswer.shortAnswerAnswer" />
    	</td>
    	
    	<s:form action="editShortAnswerItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="shortAnswer.shortAnswerID" value="<s:property value="shortAnswer.shortAnswerID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="修改"  />
		</td>
		</s:form>
		
		<s:form action="deleteShortAnswerItemA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="shortAnswer.shortAnswerID" value="<s:property value="shortAnswer.shortAnswerID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="删除"  />
		</td>
		</s:form>	
		
		<s:form action="editMarkA"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="examPaper.examPaperID" value="<s:property value="examPaperID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
		</td>
    	<td>
			<input type="submit"  value="<s:property value="mark" />"  />
		</td>
		</s:form>
	</tr>
   	</s:iterator>
   	</table>
   	<br/>
   	
   	<s:form action="addShortAnswerItemA">
   	<input type="hidden" name="courseID" value="<s:property value="#request.examInfo.courseID" />" >
	<input type="hidden" name="examID" value="<s:property value="#request.examInfo.examID" />" /><br/>
   	<input type="submit" class="btns" value="增加简答题"/>
    </s:form> 
 
</div>
</body>
</html> 